﻿using University.Workshop.ClientApp;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace University.Workshop.Tests
{
    
    
    /// <summary>
    ///This is a test class for LuckTest and is intended
    ///to contain all LuckTest Unit Tests
    ///</summary>
    [TestClass()]
    public class LuckTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for IncrementCoins
        ///</summary>
        [TestMethod()]
        public void IncrementCoinsTest()
        {
            Luck target = new Luck(); // TODO: Initialize to an appropriate value
            string present = "100"; // TODO: Initialize to an appropriate value
            string expected = "200"; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.IncrementCoins(present);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for DecreaseCoins
        ///</summary>
        [TestMethod()]
        public void DecreaseCoinsTest()
        {
            Luck target = new Luck(); // TODO: Initialize to an appropriate value
            string present = "100"; // TODO: Initialize to an appropriate value
            string expected = "0"; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.DecreaseCoins(present);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }


        /// <summary>
        ///A test for GetCard
        ///</summary>
        [TestMethod()]
        public void GetCardTest()
        {
            Luck target = new Luck(); // TODO: Initialize to an appropriate value
            string card = "Images/trece.png"; // TODO: Initialize to an appropriate value
            int expected = 13; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.GetCard(card);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetCard
        ///</summary>
        [TestMethod()]
        public void GetCardTest1()
        {
            Luck target = new Luck(); // TODO: Initialize to an appropriate value
            string card = "Images/tce.png"; // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.GetCard(card);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Consult
        ///</summary>
        [TestMethod()]
        public void ConsultTest()
        {
            Luck target = new Luck(); // TODO: Initialize to an appropriate value
            int variableOne = 6; // TODO: Initialize to an appropriate value
            int variableTwo = 2; // TODO: Initialize to an appropriate value
            string operation = "mayor"; // TODO: Initialize to an appropriate value
            char expected = 's'; // TODO: Initialize to an appropriate value
            char actual;
            actual = target.Consult(variableOne, variableTwo, operation);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Consult
        ///</summary>
        [TestMethod()]
        public void ConsultTest1()
        {
            Luck target = new Luck(); // TODO: Initialize to an appropriate value
            int variableOne = 2; // TODO: Initialize to an appropriate value
            int variableTwo = 6; // TODO: Initialize to an appropriate value
            string operation = "mayor"; // TODO: Initialize to an appropriate value
            char expected = 'n'; // TODO: Initialize to an appropriate value
            char actual;
            actual = target.Consult(variableOne, variableTwo, operation);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Consult
        ///</summary>
        [TestMethod()]
        public void ConsultTest2()
        {
            Luck target = new Luck(); // TODO: Initialize to an appropriate value
            int variableOne = 2; // TODO: Initialize to an appropriate value
            int variableTwo = 5; // TODO: Initialize to an appropriate value
            string operation = "menor"; // TODO: Initialize to an appropriate value
            char expected = 's'; // TODO: Initialize to an appropriate value
            char actual;
            actual = target.Consult(variableOne, variableTwo, operation);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Consult
        ///</summary>
        [TestMethod()]
        public void ConsultTest3()
        {
            Luck target = new Luck(); // TODO: Initialize to an appropriate value
            int variableOne = 5; // TODO: Initialize to an appropriate value
            int variableTwo = 2; // TODO: Initialize to an appropriate value
            string operation = "menor"; // TODO: Initialize to an appropriate value
            char expected = 'n'; // TODO: Initialize to an appropriate value
            char actual;
            actual = target.Consult(variableOne, variableTwo, operation);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Consult
        ///</summary>
        [TestMethod()]
        public void ConsultTest4()
        {
            Luck target = new Luck(); // TODO: Initialize to an appropriate value
            int variableOne = 4; // TODO: Initialize to an appropriate value
            int variableTwo = 6; // TODO: Initialize to an appropriate value
            string operation = "igual"; // TODO: Initialize to an appropriate value
            char expected = 'o'; // TODO: Initialize to an appropriate value
            char actual;
            actual = target.Consult(variableOne, variableTwo, operation);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Consult
        ///</summary>
        [TestMethod()]
        public void ConsultTest5()
        {
            Luck target = new Luck(); // TODO: Initialize to an appropriate value
            int variableOne = 4; // TODO: Initialize to an appropriate value
            int variableTwo = 4; // TODO: Initialize to an appropriate value
            string operation = "igual"; // TODO: Initialize to an appropriate value
            char expected = 'i'; // TODO: Initialize to an appropriate value
            char actual;
            actual = target.Consult(variableOne, variableTwo, operation);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetCard
        ///</summary>
        [TestMethod()]
        public void GetCardTest2()
        {
            Luck target = new Luck(); // TODO: Initialize to an appropriate value
            string card = "Images/uno.png"; // TODO: Initialize to an appropriate value
            int expected = 1; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.GetCard(card);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetCard
        ///</summary>
        [TestMethod()]
        public void GetCardTest3()
        {
            Luck target = new Luck(); // TODO: Initialize to an appropriate value
            string card = "Images/dos.png"; // TODO: Initialize to an appropriate value
            int expected = 2; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.GetCard(card);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetCard
        ///</summary>
        [TestMethod()]
        public void GetCardTest4()
        {
            Luck target = new Luck(); // TODO: Initialize to an appropriate value
            string card = "Images/tre.png"; // TODO: Initialize to an appropriate value
            int expected = 3; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.GetCard(card);
            Assert.AreEqual(expected, actual);
           // Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetCard
        ///</summary>
        [TestMethod()]
        public void GetCardTest5()
        {
            Luck target = new Luck(); // TODO: Initialize to an appropriate value
            string card = "Images/cuatro.png"; // TODO: Initialize to an appropriate value
            int expected = 4; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.GetCard(card);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetCard
        ///</summary>
        [TestMethod()]
        public void GetCardTest6()
        {
            Luck target = new Luck(); // TODO: Initialize to an appropriate value
            string card = "Images/cinco.png"; // TODO: Initialize to an appropriate value
            int expected = 5; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.GetCard(card);
            Assert.AreEqual(expected, actual);
           // Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetCard
        ///</summary>
        [TestMethod()]
        public void GetCardTest7()
        {
            Luck target = new Luck(); // TODO: Initialize to an appropriate value
            string card = "Images/ceis.png"; // TODO: Initialize to an appropriate value
            int expected = 6; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.GetCard(card);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetCard
        ///</summary>
        [TestMethod()]
        public void GetCardTest8()
        {
            Luck target = new Luck(); // TODO: Initialize to an appropriate value
            string card = "Images/ciete.png"; // TODO: Initialize to an appropriate value
            int expected = 7; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.GetCard(card);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetCard
        ///</summary>
        [TestMethod()]
        public void GetCardTest9()
        {
            Luck target = new Luck(); // TODO: Initialize to an appropriate value
            string card = "Images/ocho.png"; // TODO: Initialize to an appropriate value
            int expected = 8; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.GetCard(card);
            Assert.AreEqual(expected, actual);
           // Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetCard
        ///</summary>
        [TestMethod()]
        public void GetCardTest10()
        {
            Luck target = new Luck(); // TODO: Initialize to an appropriate value
            string card = "Images/nueve.png"; // TODO: Initialize to an appropriate value
            int expected = 9; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.GetCard(card);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetCard
        ///</summary>
        [TestMethod()]
        public void GetCardTest11()
        {
            Luck target = new Luck(); // TODO: Initialize to an appropriate value
            string card = "Images/diez.png"; // TODO: Initialize to an appropriate value
            int expected = 10; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.GetCard(card);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetCard
        ///</summary>
        [TestMethod()]
        public void GetCardTest12()
        {
            Luck target = new Luck(); // TODO: Initialize to an appropriate value
            string card = "Images/once.png"; // TODO: Initialize to an appropriate value
            int expected = 11; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.GetCard(card);
            Assert.AreEqual(expected, actual);
           // Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetCard
        ///</summary>
        [TestMethod()]
        public void GetCardTest13()
        {
            Luck target = new Luck(); // TODO: Initialize to an appropriate value
            string card = "Images/doce.png"; // TODO: Initialize to an appropriate value
            int expected = 12; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.GetCard(card);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetCard
        ///</summary>
        [TestMethod()]
        public void GetCardTest14()
        {
            Luck target = new Luck(); // TODO: Initialize to an appropriate value
            string card = "Images/trece.png"; // TODO: Initialize to an appropriate value
            int expected = 13; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.GetCard(card);
            Assert.AreEqual(expected, actual);
           // Assert.Inconclusive("Verify the correctness of this test method.");
        }



        /// <summary>
        ///Una prueba de GetImage
        ///</summary>
        [TestMethod()]
        public void GetImageTest()
        {
            Luck target = new Luck(); // TODO: Inicializar en un valor adecuado
            string expected = string.Empty; // TODO: Inicializar en un valor adecuado
            string actual;
            actual = target.GetImage;
            Assert.AreNotEqual(expected, actual);
        }
    }
}
